14 #ifndef FXLS8962_AF_H_ 15 #define FXLS8962_AF_H_ 61 #define FXLS8962_SPI_MAX_MSG_SIZE (64) 65 #define FXLS8962_SPI_CMD_LEN (2) 69 #define FXLS8962_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW 151 ARM_DRIVER_SPI *pBus,
231 #endif // FXLS8962_AF_H_
registerDeviceInfo_t deviceInfo
This defines the sensor specific information for SPI.
int32_t FXLS8962_I2C_DeInit(fxls8962_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
void FXLS8962_I2C_SetIdleTask(fxls8962_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
ARM_DRIVER_SPI * pCommDrv
This structure defines the spi slave command format.
void FXLS8962_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)
The SPI Read Pre-Process function to generate Sensor specific SPI Message Header. ...
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...
void FXLS8962_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)
The SPI Write Pre-Process function to generate Sensor specific SPI Message Header.
This structure defines the Read command List.
The register_io_spi.h file declares low-level interface functions for reading and writing sensor regi...
int32_t FXLS8962_SPI_Deinit(fxls8962_spi_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
The sensor_io_spi.h file declares low-level interface functions for reading and writing sensor regist...
int32_t FXLS8962_SPI_ReadData(fxls8962_spi_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
This structure defines the device specific info required by register I/O.
The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
ARM_DRIVER_I2C * pCommDrv
spiSlaveSpecificParams_t slaveParams
registerDeviceInfo_t deviceInfo
int32_t FXLS8962_I2C_Initialize(fxls8962_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *whoAmi)
The interface function to initialize the sensor.
void FXLS8962_SPI_SetIdleTask(fxls8962_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the SPI Idle Task.
This structure defines the fxls8962 raw data buffer.
int32_t FXLS8962_I2C_ReadData(fxls8962_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
int32_t FXLS8962_SPI_Configure(fxls8962_spi_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
int32_t FXLS8962_I2C_Configure(fxls8962_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
This structure defines the Write command List.
This file contains the FXLS8962 Accelerometer register definitions, access macros, and device access functions.
This defines the sensor specific information for I2C.
int32_t FXLS8962_SPI_Initialize(fxls8962_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSlaveSelect, uint8_t *whoAmi)
The interface function to initialize the sensor.